<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('recharge/index')}">充值列表</a></li>
        <li  class="active"><a href="{:url('recharge/list')}">资金明细</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('recharge/list')}">
        <input class="form-control" type="text" name="userid" style="" value="{:input('userid', '')}" placeholder="用户id">
        <select name="type" id="" class="form-control">
            <volist name="type" id="vo">
                <option value="{$key}" {:input('type')==$key?'selected':''}>{$vo}</option>
            </volist>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索">
        <a class="btn btn-danger" href="{:url('recharge/list')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form" action="{:url('recharge/batchdels')}">
        <div class="table-actions">
            <button class="btn btn-sm btn-primary js-ajax-submit" type="submit">批量删除</button>
        </div>
        <div class="row">
            <table class="table table-hover table-bordered table-striped table-condensed">
                <thead>
                <tr>
                    <th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></th>
                    <th>ID</th>
                    <th>用户id</th>
                    <th>用户</th>
                    <th>手机</th>
                    <th>金额</th>
                    <th>时间</th>
                    <th>备注</th>
                    <th>{:lang('ACTIONS')}</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="list" item="vo">
                    <tr>
                        <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
                        <td>{$vo.id}</td>
                        <td>{$vo.user_id}</td>
                        <td>{$vo.nickname}</td>
                        <td>{$vo.phone}</td>
                        <td>{$vo.money}</td>
                        <td>{:date('Y-m-d H:i:s',$vo['add_time'])}</td>
                        <td>{$vo.info}</td>
                        <td>
                            <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('receive/del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                        </td>
                    </tr>
                </foreach>
                </tbody>
            </table>
            <div class="pagination">{$list->render()}</div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    $(function () {

    })
</script>
</body>
</html>